<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="page"  uri="http://www.aptech.com/pager"%>
							<page:page pages="${courierPage.allPage}" url="courier!getCourierOfPage"
							curpage="${courierPage.curpage}" pageIndex="7" total="${courierPage.total}" pageSize="${courierPage.pageSize }"/>
								<table
									class="table table-striped table-bordered bootstrap-datatable dataTable" id="dateTable">
									<thead>
										<tr role="row">
											<th class="sorting_asc" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">序号</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">公司名字</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">快递网点</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">快递员姓名</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">手机号码</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">密码</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">RFID</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">序列号</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">登录情况</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">存件数/存错率</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">状态</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">操作</th>
										</tr>
									</thead>
			
									<tbody>
											<s:if test="courierPage.list.size()==0">
									    	<tr class="odd">
											  <td colspan="12">=_=没有找到任何记录。。。。。。。。</td>
											</tr>
									       </s:if>
										<s:iterator value="courierPage.list" var="courier" status="st">
											<tr class="odd">
												<td class="center "><s:property value="#st.index+1" /></td>
												<td class="center "><s:property value="#courier.express.company.companyName" /></td>
												<td class="center "><s:property value="#courier.express.expressName" /></td>
												<td class="center "><s:property value="#courier.courierName" /></td>
												<td class="center "><s:property value="#courier.mobileNum" /></td>
												<td class="center "><s:property value="#courier.pwd" /></td>
												<td class="center "><s:property value="#courier.rfid" /></td>
												<td class="center "><s:property value="#courier.sernum" /></td>
												<td class="center ">
													<s:if test="#courier.offLineTime==0">
														24小时内登录过
													</s:if>
													<s:elseif test="#courier.offLineTime==-1">
														从未存过件
													</s:elseif>
													<s:else>
														<s:property value="#courier.offLineTime" />天未登录
													</s:else>
												</td>
												<td class="center "><s:property value="#courier.saveNum" />/<s:property value="#courier.errorRate" /></td>
												<td class="center ">
													<s:if test="#courier.status==0">
													正常
													</s:if>
													<s:elseif test="#courier.status==1">
													已删除
													</s:elseif>
													<s:elseif test="#courier.status==4">
													已禁用
													</s:elseif>
													<s:else>
													-_-
													</s:else>
												</td>
												<td class="center "> 
													<a href="getCourierById?courierID=<s:property value="#courier.courierId" />&expressId=<s:property value="#courier.express.expressId" />">
														修改
													</a>|
													<a href="deleteCourier?courierID=<s:property value="#courier.courierId" />&expressId=<s:property value="#courier.express.expressId" />">
														删除
													</a>|
													<a href="express!getExpressDetail?expressId=<s:property value="#courier.express.expressId" />">
														所属网点
													</a>|
													<a id="store" href="package!getCourierStore?courierID=<s:property value="#courier.courierId" />">
														存件情况
													</a>|
													<s:if test="status==0">
													<a href="signCourier?flag=4&courierID=<s:property value="#courier.courierId" />&expressId=<s:property value="#courier.express.expressId" />">
														禁用
													</a>
													</s:if>
													<s:else>
													<a href="signCourier?flag=0&courierID=<s:property value="#courier.courierId" />&expressId=<s:property value="#courier.express.expressId" />">
														启用
													</a>
													</s:else>
												</td>
												<s:else>
												<td class="center "> 
												</td>
												</s:else>
											</tr>
										</s:iterator>
									</tbody>
								</table>
								<input type="hidden" value="${courierPage.curpage}" id="curpage"/><input type="hidden" value="${courierPage.pageSize }" id="pageSize"/>
								<page:page pages="${courierPage.allPage}" url="courier!getCourierOfPage"
										curpage="${courierPage.curpage}" pageIndex="7" total="${courierPage.total}" pageSize="${courierPage.pageSize }"/>